public class Human {
    private String name;//姓名
    private int age;//年龄
    private char gender;//性别
    private double hight;//身高

    //空参 + 实参
    public Human(){}
    public Human(String name,int age,char gender,double hight){
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.hight = hight;
    }

    //get 和 set 方法
    public void setname(String name){
        this.name = name;
    }
    public String getname(){
        return name;
    }

    public void setage(int age){
        this.age = age;
    }
    public int getage(){
        return age;
    }

    public void setgender(char gender){
        this.gender = gender;
    }
    public char getgender(){
        return gender;
    }

    public void sethight(double hight){
        this.hight = hight;
    }
    public double gethight(){
        return hight;
    }
}
